//package com.addplus.townmall.server.api.mapper.town;
//
//import com.addplus.townmall.server.api.model.town.expand.DistributionOrderPersonalExpand;
//import com.addplus.townmall.server.api.utils.BaseAddMapper;
//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
//import org.apache.ibatis.annotations.Param;
//import org.apache.ibatis.annotations.Select;
//
//import java.util.List;
//
///**
// * <p>
// * 分销订单佣金表 Mapper 接口
// * </p>
// *
// * @author zhangjiehang
// * @since 2018-08-27
// */
//@Deprecated
//public interface DistributionOrderPersonalMapper extends BaseAddMapper<DistributionOrderPersonal> {
//
//    @Select("SELECT\n" +
//            "\tm.nick_name,\n" +
//            "\ttor.order_number,\n" +
//            "\ts.store_name,\n" +
//            "\tdop.* \n" +
//            "FROM\n" +
//            "\tdistribution_order_personal dop\n" +
//            "\tLEFT JOIN member m ON m.id = dop.member_id\n" +
//            "\tLEFT JOIN town_order tor ON tor.id = dop.order_id\n" +
//            "\tLEFT JOIN store s ON s.id = dop.store_id \n" +
//            "WHERE\n" +
//            "\tdop.is_delete = 0")
//    List<DistributionOrderPersonalExpand> getDistributionOrderPersonalPage(Page page);
//
//
//    @Select("SELECT\n" +
//            "\tm.nick_name,\n" +
//            "\ttor.order_number,\n" +
//            "\ts.store_name,\n" +
//            "\tdop.* \n" +
//            "FROM\n" +
//            "\tdistribution_order_personal dop\n" +
//            "\tLEFT JOIN member m ON m.id = dop.member_id\n" +
//            "\tLEFT JOIN town_order tor ON tor.id = dop.order_id\n" +
//            "\tLEFT JOIN store s ON s.id = dop.store_id \n" +
//            "WHERE\n" +
//            "\tdop.is_delete = 0 and dop.member_id=#{memberId}")
//    List<DistributionOrderPersonalExpand> getDistributionOrderPersonalByMember(Page page, @Param("memberId") Integer memberId);
//
//
//    @Select("select * from distribution_order_personal a where a.order_id=#{orderId} and a.order_item_id =#{orderItemsId} and order_type = #{orderType} and a.brokerage_status=0;")
//    DistributionOrderPersonal getDistribution(@Param("orderId") Integer orderId, @Param("orderType") Integer orderType, @Param("orderItemsId") Integer orderItemsId);
//
//}
